package com.example.artwindow.service;

import com.example.artwindow.domain.po.Movie;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.artwindow.domain.dto.MovieUploadDTO;
import com.example.artwindow.domain.dto.PageMovieDTO;
import com.example.artwindow.domain.vo.MovieDetailsVO;
import com.example.artwindow.domain.vo.MovieVO;
import com.example.artwindow.result.ListResult;
import com.example.artwindow.result.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
* @author EiEi
* @description 针对表【movie_info】的数据库操作Service
* @createDate 2023-12-20 12:21:12
*/
public interface MovieService extends IService<Movie> {


	Result<ListResult<MovieVO>> pageMovie(PageMovieDTO pageMovieDTO);

	Result<?> upLoadMovie(MovieUploadDTO movieUpLoadDTO, MultipartFile movieCover) throws IOException;

	void countComment(Long movieId, Integer commentScore);

	Result<MovieDetailsVO> selectPlotById(Long id);

	Result<List<MovieVO>> getMovieList(Integer amount);
}
